class Father():
    def __init__(self):
        self.name = "老王"

    def work(self):
        print("爱上班")


class Monther():
    def __init__(self):
        self.fv = 100

    def cookie(self):
        print("爱做饭")


class GrandFather():
    def __init__(self):
        self.money = 10000

    def take_fish(self):
        print("钓鱼")


# 对于属性来说，只能继承第一个
# 有办法解决
class Son(Father, Monther, GrandFather):
    def __init__(self): # 解决只继承一个父类属性问题
        Father.__init__(self)
        Monther.__init__(self)
        GrandFather.__init__(self)



s = Son()
s.take_fish()
s.cookie()
s.work()

print(s.name)
print(s.fv)
print(s.money)
